package cn.brickie.adapter;

/***
 * @author Brickie
 * @date 2018/6/4 12:59
 */
public class AdapterPatternDemo {
    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();
        audioPlayer.play(MediaType.MP3, "beyond the horizon.mp3");
        audioPlayer.play(MediaType.MP4, "alone.mp4");
        audioPlayer.play(MediaType.VLC, "far far away.vlc");
        audioPlayer.play(MediaType.AVI, "mind me.avi");
    }
}
